import useAxios from "@/api/Request";
// 企业业务中心-通过单位id查询可关联的合作单位列表
export const unitListApi = (data: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/unitList',
	method: 'get',
	params: data
})
// 企业业务中心-通过单位id查询可关联的小区列表
export const communityListApi = (data: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/communityList',
	method: 'get',
	params: data
})
// 企业业务中心-通过单位id可关联的站点列表
export const listAssociableSitesApi = (data: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/listAssociableSites',
	method: 'get',
	params: data
})



// 企业业务中心-通过单位id查询经营占比-统计
export const operatingProportionApi = (data: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/operatingProportion',
	method: 'get',
	params: data
})

// 企业业务中心-通过单位id查询数量统计
export const quantityStatisticsApi = (data: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/quantityStatistics',
	method: 'get',
	params: data
})
// 企业业务中心-分页列表查询
export const unitBusinessListApi = (data: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/list',
	method: 'get',
	params: data
})
// 企业业务中心-通过id删除
export const unitBusinessDelApi = (data: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/delete',
	method: 'delete',
	params: data
})


// 企业业务中心-添加 
export const addApi = (parameter: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/add',
	method: 'post', data: parameter
})

// 企业业务中心-编辑
export const editApi = (parameter: any) => useAxios({
	api: '/jeecg-boot/unitBusiness/edit',
	method: 'post', data: parameter
})